﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EntityModule
{
   
    public class EntityService 
    {
        private static SportDataContext _service;
        public static SportDataContext Instance()
        {
            if (_service == null)
                _service = new SportDataContext(System.Configuration.ConfigurationSettings.AppSettings["ConnectStr"]);
            return _service;
        }

        public SportDataContext DBService
        {
            get { return Instance(); }
        }
    }

}
